{extends 'admin/layout/table-main.tpl'}

{block title}营销管理{/block}
{block smallTitle}系统内的营销管理。{/block}
{block head}
	<script type="text/javascript" charset="utf-8" src="{asset('admin/ueditor/ueditor.config.js')}"></script>
	<script type="text/javascript" charset="utf-8" src="{asset('admin/ueditor/ueditor.all.min.js')}"> </script>
	<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
	<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
	<script type="text/javascript" charset="utf-8" src="{asset('admin/ueditor/lang/zh-cn/zh-cn.js')}"></script>
{/block}
{block main}
<div class="row" xmlns="http://www.w3.org/1999/html">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			<div class="ibox-title">
				<h5>营销管理 <small>后台营销编辑</small></h5>
			</div>
			<div class="ibox-content">
				<form method="post" class="form-horizontal" action="{route('AdminGlobalMarketingAction')}">
					{if $data}
					{*<div class="form-group">*}
						{*<label class="col-sm-2 control-label">营销id</label>*}
						{*<div class="col-sm-10">*}
							{*<p class="form-control-static">{$data.id}</p>*}
						{*</div>*}
					{*</div>*}
					{/if}
					<div class="form-group">
						<label class="col-sm-2 control-label">屏蔽网站</label>
						<div class="col-sm-10">
							<textarea placeholder="多图用英文,隔开" type="text" style="width:100%;height:200px;" name="urls"> {Input::old('urls', $data.urls)|escape} </textarea>
							<span class="help-inline">*多网站用英文,隔开,格式:www.baidu.com</span>
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-2 control-label">屏蔽模块</label>
						<div class="col-sm-2">
							<div class="checkbox i-checks">
								<label>
									<input type="checkbox" value="1" name="model[]" {if in_array(1,$data.model)}checked{/if}> <i></i> 倒计时</label>
							</div>
							<div class="checkbox i-checks">
								<label>
									<input type="checkbox" value="2" name="model[]" {if in_array(2,$data.model)}checked{/if}> <i></i> 评论</label>
							</div>
							<div class="checkbox i-checks">
								<label>
									<input type="checkbox" value="3" name="model[]" {if in_array(3,$data.model)}checked{/if}> <i></i> 购买记录</label>
							</div>
							<div class="checkbox i-checks">
								<label>
									<input type="checkbox" value="4" name="model[]" {if in_array(4,$data.model)}checked{/if}> <i></i> 九宫格</label>
							</div>
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-2">
							<input type="hidden" class="form-control" name="id" value="{$data.id}">
							<button class="btn btn-primary" type="submit">保存内容</button>
							<a class="btn btn-white" type="button" href="javascript:;">返回</a>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
{/block}
{block script}

{/block}
